package com.skyjoo.search.lucene.index.directory;

import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.store.Directory;

import com.skyjoo.search.lucene.index.conf.Config;

public class SimpleDirectory implements IndexDirectory {

    private Config    config;
    private Directory directory;
    private Analyzer  analyzer;

    public SimpleDirectory(Directory directory) {
        this.directory = directory;
    }

    @Override
    public Directory getDirectory() {
        return this.directory;
    }

    public Config getConfig() {
        return config;
    }

    public void setConfig(Config config) {
        this.config = config;
    }

    public Analyzer getAnalyzer() {
        return analyzer;
    }

    public void setAnalyzer(Analyzer analyzer) {
        this.analyzer = analyzer;
    }

    public void setDirectory(Directory directory) {
        this.directory = directory;
    }

    @Override
    public boolean isInitialized() {
        return true;
    }

    @Override
    public void init() {
        // TODO Auto-generated method stub
        
    }

    @Override
    public void destroy() {
        // TODO Auto-generated method stub
        
    }

}
